
# 单行注释

'''
多行
注释
'''

name = "小明"
age = 18
sex = True
high = 1.75
weight = 75.0

str = "{} is a beautiful {}！"
# print(str.format("Beijing","city"))
# print(str.format("北京","城市","哈哈"))
# print("name: " + name)
# print("age:", age)

str = "Hello, 你好！"
encoded_str = str.encode() # 编码
decoded_str = encoded_str.decode() #解码
# print(encoded_str)
# print(decoded_str)


class Names:
    Name1 = "北京"
    Name2 = "城市"

str1 = "{names.Name1} is a beautiful {names.Name2}!".format(names=Names)
print(str1)

i = 10
f = 10.5
b = True
n = "张"
print(i + f)
print(i + b)
print(f - b)
print(n + n)
print(n * 5)


# input输人的任何内容都会被当做字符串 回结果为字符串 str 类型
# name = input("请输入用户名")
# passwd = input("请输入密码")
# print(type(passwd))


a = [1,2,3]
b = [1,2,3]

# if (b is not a):
print(a is b)

# if (b == a):
print(b == a)
